<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/ChatApp.Service.Model" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/ChatApp.Service.Model" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:1234/ChatAppService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="User">
    <xs:sequence>
      <xs:element minOccurs="0" name="AddFriends" nillable="true" type="tns:ArrayOfAddFriend" />
      <xs:element minOccurs="0" name="AddFriends1" nillable="true" type="tns:ArrayOfAddFriend" />
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="KichHoat" type="xs:boolean" />
      <xs:element minOccurs="0" name="MessageUserReceives" nillable="true" type="tns:ArrayOfMessageUserReceive" />
      <xs:element minOccurs="0" name="Messages" nillable="true" type="tns:ArrayOfMessage" />
      <xs:element minOccurs="0" name="NgayTao" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PassWord" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TrangThai" type="xs:unsignedByte" />
      <xs:element minOccurs="0" name="UserName" nillable="true" type="xs:string" />
    </xs:sequence>
    <xs:attribute ref="ser:Id" />
    <xs:attribute ref="ser:Ref" />
  </xs:complexType>
  <xs:element name="User" nillable="true" type="tns:User" />
  <xs:complexType name="ArrayOfAddFriend">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AddFriend" nillable="true" type="tns:AddFriend" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfAddFriend" nillable="true" type="tns:ArrayOfAddFriend" />
  <xs:complexType name="AddFriend">
    <xs:sequence>
      <xs:element minOccurs="0" name="IdAddFriend" type="xs:int" />
      <xs:element minOccurs="0" name="NgayTao" type="xs:dateTime" />
      <xs:element minOccurs="0" name="User" nillable="true" type="tns:User" />
      <xs:element minOccurs="0" name="User1" nillable="true" type="tns:User" />
      <xs:element minOccurs="0" name="UserName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UserNameAdd" nillable="true" type="xs:string" />
    </xs:sequence>
    <xs:attribute ref="ser:Id" />
    <xs:attribute ref="ser:Ref" />
  </xs:complexType>
  <xs:element name="AddFriend" nillable="true" type="tns:AddFriend" />
  <xs:complexType name="Message">
    <xs:sequence>
      <xs:element minOccurs="0" name="Content" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IdMessage" type="xs:int" />
      <xs:element minOccurs="0" name="IdRoom" type="xs:int" />
      <xs:element minOccurs="0" name="MessageUserReceives" nillable="true" type="tns:ArrayOfMessageUserReceive" />
      <xs:element minOccurs="0" name="NgayTao" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Room" nillable="true" type="tns:Room" />
      <xs:element minOccurs="0" name="User" nillable="true" type="tns:User" />
      <xs:element minOccurs="0" name="UserName" nillable="true" type="xs:string" />
    </xs:sequence>
    <xs:attribute ref="ser:Id" />
    <xs:attribute ref="ser:Ref" />
  </xs:complexType>
  <xs:element name="Message" nillable="true" type="tns:Message" />
  <xs:complexType name="ArrayOfMessageUserReceive">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MessageUserReceive" nillable="true" type="tns:MessageUserReceive" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMessageUserReceive" nillable="true" type="tns:ArrayOfMessageUserReceive" />
  <xs:complexType name="MessageUserReceive">
    <xs:sequence>
      <xs:element minOccurs="0" name="IdMessage" type="xs:int" />
      <xs:element minOccurs="0" name="IdMessageUserReceive" type="xs:int" />
      <xs:element minOccurs="0" name="IsRead" type="xs:boolean" />
      <xs:element minOccurs="0" name="Message" nillable="true" type="tns:Message" />
      <xs:element minOccurs="0" name="User" nillable="true" type="tns:User" />
      <xs:element minOccurs="0" name="UserNameReceive" nillable="true" type="xs:string" />
    </xs:sequence>
    <xs:attribute ref="ser:Id" />
    <xs:attribute ref="ser:Ref" />
  </xs:complexType>
  <xs:element name="MessageUserReceive" nillable="true" type="tns:MessageUserReceive" />
  <xs:complexType name="Room">
    <xs:sequence>
      <xs:element minOccurs="0" name="IdRoom" type="xs:int" />
      <xs:element minOccurs="0" name="LaChatRoom" type="xs:boolean" />
      <xs:element minOccurs="0" name="Messages" nillable="true" type="tns:ArrayOfMessage" />
      <xs:element minOccurs="0" name="NgayTao" type="xs:dateTime" />
    </xs:sequence>
    <xs:attribute ref="ser:Id" />
    <xs:attribute ref="ser:Ref" />
  </xs:complexType>
  <xs:element name="Room" nillable="true" type="tns:Room" />
  <xs:complexType name="ArrayOfMessage">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Message" nillable="true" type="tns:Message" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMessage" nillable="true" type="tns:ArrayOfMessage" />
</xs:schema>